<template>
  <div class="goods">
    <PageContent :contentTableConfig="contentTableConfig" :pageName="pageName">
      <template #image="scoped">
        <el-image
          style="width: 100px; height: 100px"
          :src="scoped.row.imgUrl"
          :preview-src-list="[scoped.row.imgUrl]"
          :initial-index="1"
          :hide-on-click-modal="true"
        >
        </el-image>
      </template>
    </PageContent>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import PageContent from '@/componments/page-content'
import { contentTableConfig } from './config/content.config'

export default defineComponent({
  name: 'goods',
  components: { PageContent },
  setup() {
    const pageName = 'Goods'
    return { contentTableConfig, pageName }
  }
})
</script>

<style scoped></style>
